<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li{
            background-color: red;
        }
    </style>
</head>
<body>
    <div id="app">
        <ul id="list">

        </ul>
    </div>
    <script src="../dom/dom.js"></script>
    <script>
        let par = Dom.getEl('#app');
        Dom.on(par,'click','li',function(e){
            e.stopPropagation();
        });
        //par节点阻止了事件继续向上冒泡，所以，document 没有反应
        Dom.on(document,'click','li',function(e){
           alert(11)
        });
        setTimeout(function (param) { 
            Dom.append(Dom.getEl('#list'),`<li>很少很少</li>`)
        },2000);
    </script>
</body>
</html>